﻿using System;
/*
    Declare two integer variables a and b and assign them with 5 and 10 and after that exchange their values by using 
    some programming logic.
    Print the variable values before and after the exchange
 */
class ExchangeVariableValues
{
    static void Main()
    {

        int a = 5;
        int b = 10;
        Console.WriteLine("before exchange: ");
        Console.WriteLine(a);
        Console.WriteLine(b);
        Console.WriteLine();

        Console.WriteLine("after exchange: ");
        a = a + b;
        b = a - b;
        a = a - b;
        Console.WriteLine(a);
        Console.WriteLine(b);
    }
}
